import json
from urllib import request
from python_protobuf.proto import hello_pb2

request = hello_pb2.HelloRequest()
request.name = "erge"
resp = request.SerializeToString()
print(len(resp))
res_json = {
    "name": "erge"
}
print(len(json.dumps(res_json)))
request2 = hello_pb2.HelloRequest()
request2.ParseFromString(resp)
print(request2.name)